<template>
  <div class="header">
    <div class="card-header">运行状态</div>
    <div class="card-body">
      <div v-for="item in data" :key="item.bottom" class="item">
        <SvgIcon
          :iconClass="item.iconClass"
          style="width: 35px; height: 35px"
        />
        <div class="content1">
          <div class="num">{{ item.num }}</div>
          <div class="bottom">{{ item.bottom }}</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    data: {
      type: Array,
      required: true,
    },
    fixed: {
      type: Boolean,
      default: false,
    },
  },
};
</script>

<style scoped>
.header {
  margin: 8px;
  border: 1px solid #a3cfbb;
  border-radius: 5px;
}

.card-header {
  border: 1px solid #cccccc;
  background-color: #f8f8f8;
  padding-left: 10px;
}

.card-body {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  background-color: #fff;
}

.item {
  display: flex;
  align-items: center;
  margin: 5px;
  padding: 10px;
}
